package reflection.cglibV1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reflection.Book;

/**
 * @author ChangLiang
 * @date 2020/3/18
 */
public class BookDaoImpl {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    public void addBook(String id, String name) {
        logger.info("add a book name: {}", name);
    }

    public Book getBook(String id) {
        logger.info("get a book");
        return new Book(id, "test book");
    }
}
